package sketch.generator.experiment;

import java.util.Collection;
import java.util.List;

import sketch.util.Checker;

public class MultiValue<T> extends ValueGroup<T>{

	public MultiValue(T...data) {
		super(data);
	}
	
	public MultiValue(Collection<T> data) {
		super(data);
	}
	
	@Override
	protected void checkDataValidity(Collection<T> data) {
		Checker.checkTrue(data.size() >= 0, "The input data should contain >=0 elements. not: " + data.size());
	}

	@Override
	protected void checkDataValidity(T... data) {
		Checker.checkTrue(data.length >= 0, "The input data should contain >= 0 elements. not: " + data.length);
	}

	@Override
	public boolean isSingleData() {
		return false;
	}

	@Override
	public boolean isEmptyData() {
		return false;
	}

	@Override
	public boolean isMultiData() {
		return true;
	}


}
